mean value theorem examples